import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/index.vue'
import Retailers from '../views/retailers.vue'
import News from '../views/news.vue'
import My from '../views/my.vue'
import classification from '../views/classification.vue'



Vue.use(VueRouter)

const routes = [{
        path: '/index',
        redirect: 'Index'
    },
    {
        path: '/',
        name: 'Index',
        component: Index
    },
    {
        path: '/retailers',
        name: 'Retailers',
        component: Retailers
    },
    {
        path: '/news',
        name: 'News',
        component: News
    },
    {
        path: '/my',
        name: 'My',
        component: My
    },
    {
        path: '/classification',
        name: 'classification',
        component: classification
    },

]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router